<?php
/**
 * Created by PhpStorm.
 * User: landiyu
 * Date: 15-03-21
 * Time: 14:46
 */

namespace Home\Controller;
use OT\DataDictionary;


class GridjsonController extends HomeController {

    public function getServiceManageIndexJson() {
        $Model = M();
        //进行原生的SQL查询
        $jsondata = $Model->query('SELECT * FROM `sdg_systemmsg` ORDER BY `inputdatetime` DESC');

        $jsondata = json_encode($jsondata);

        echo($jsondata);

    }

    public function getServiceManageGdManageJson() {
        $Model = M();
        //进行原生的SQL查询
        $jsondata = $Model->query('SELECT * FROM `sdg_systemmsg` ORDER BY `inputdatetime` DESC');

        $jsondata = json_encode($jsondata);

        echo($jsondata);
    }

    public function getServiceManageGrMsgManageJson() {
        $Model = M();
        //进行原生的SQL查询
        $jsondata = $Model->query('SELECT * FROM `sdg_systemmsg` ORDER BY `inputdatetime` DESC');

        $jsondata = json_encode($jsondata);

        echo($jsondata);
    }
} 